package com.niguang.work.api.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableLogic;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author chenliu
 * @since 2018-07-23
 */
@TableName("work_qiye_site")
public class QiyeSite extends Model<QiyeSite> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long qiyeId;
    /**
     * 企业名称
     */
    private String qiyeName;
    /**
     * 工地名称
     */
    private String siteName;
    /**
     * 工地位置地区ID
     */
    private String areaCityId;
    /**
     * 添加工地经纬度地点
     */
    private String sitePlace;
    /**
     * 添加工地经纬度
     */
    private String siteLatitude;
    /**
     * 项目状态 1：进行中 2：已结束
     */
    private Integer status;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 是否删除 0-未删除 1-已删除
     */
    @TableLogic
    private Boolean delFlag;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getQiyeId() {
        return qiyeId;
    }

    public void setQiyeId(Long qiyeId) {
        this.qiyeId = qiyeId;
    }

    public String getQiyeName() {
        return qiyeName;
    }

    public void setQiyeName(String qiyeName) {
        this.qiyeName = qiyeName;
    }

    public String getSiteName() {
        return siteName;
    }

    public void setSiteName(String siteName) {
        this.siteName = siteName;
    }

    public String getAreaCityId() {
        return areaCityId;
    }

    public void setAreaCityId(String areaCityId) {
        this.areaCityId = areaCityId;
    }

    public String getSitePlace() {
        return sitePlace;
    }

    public void setSitePlace(String sitePlace) {
        this.sitePlace = sitePlace;
    }

    public String getSiteLatitude() {
        return siteLatitude;
    }

    public void setSiteLatitude(String siteLatitude) {
        this.siteLatitude = siteLatitude;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Boolean getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Boolean delFlag) {
        this.delFlag = delFlag;
    }

    public static final String ID = "id";

    public static final String QIYE_ID = "qiye_id";

    public static final String QIYE_NAME = "qiye_name";

    public static final String SITE_NAME = "site_name";

    public static final String AREA_CITY_ID = "area_city_id";

    public static final String SITE_PLACE = "site_place";

    public static final String SITE_LATITUDE = "site_latitude";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

    public static final String DEL_FLAG = "del_flag";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "QiyeSite{" +
        "id=" + id +
        ", qiyeId=" + qiyeId +
        ", qiyeName=" + qiyeName +
        ", siteName=" + siteName +
        ", areaCityId=" + areaCityId +
        ", sitePlace=" + sitePlace +
        ", siteLatitude=" + siteLatitude +
        ", status=" + status +
        ", createTime=" + createTime +
        ", delFlag=" + delFlag +
        "}";
    }
}
